/*@preserve ***Version 2.27.0*** */ /*@license * Copyright 2002 - 2018 Qualtrics, LLC. * All rights reserved. * * Notice: All code, text, concepts, and other information herein (collectively, the * "Materials") are the sole property of Qualtrics, LLC, except to the extent * otherwise indicated. The Materials are proprietary to Qualtrics and are protected * under all applicable laws, including copyright, patent (as applicable), trade * secret, and contract law. Disclosure or reproduction of any Materials is strictly * prohibited without the express prior written consent of an authorized signatory * of Qualtrics. For disclosure requests, please contact notice@qualtrics.com. */ try { (window["WAFQualtricsWebpackJsonP-cloud-2.27.0"]=window["WAFQualtricsWebpackJsonP-cloud-2.27.0"]||[]).push([[8],{17:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"e",(function(){return r})),n.d(t,"f",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return u}));var o=[],i=function(e){var t=e;return"string"==typeof e&&(t=document.getElementById(e)),t};function r(e,t,n){try{var o=e[t];return e[t]=n(o),function(){e[t]=o}}catch(e){return function(){}}}var a=function(e,t){var n;13!==e.which&&32!==e.which||(e.preventDefault(),(n=document.querySelector('button, a[href], input, select, textarea, [tabindex]:not([tabindex="-1"])'))&&n.focus(),t())},s=function(e,t,n,i){void 0===i&&(i=!1),o=o||[],e&&(o.push({elementToObserve:e,eventName:t,eventHandler:n,preventRemove:i||!1}),e.addEventListener(t,n,!1))},c=function(e){return"string"==typeof e},u=function(e){return"object"==typeof e&&e instanceof Array}},26:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(0),i=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a},r=function(){function e(t,n){var r=this;this.components=e.components,this.overallLatencyStartTime=null,this.overallLatency=null,this.componentStartTimes={},this.componentLatencies={},this.componentStatuses={},this.isDuplicateScriptExecution=!1,this.setRequestId=function(e){r.requestId=e},this.startTimer=function(){r.latencyStartTime=Date.now()},this.endTimer=function(){null!==r.latencyStartTime?r.overallLatency=Date.now()-r.latencyStartTime:r.debugLog.e("Tried to log overall end time without a start time.")},this.startComponentTimer=function(e){r.componentStartTimes[e]=Date.now()},this.endComponentTimer=function(e){var t=r.componentStartTimes[e];void 0!==t?(r.componentLatencies[e]=Date.now()-t,r.debugLog.safeConsole("log","Component "+e+" loaded in "+r.componentLatencies[e]+"ms")):r.debugLog.e("Tried to log a component end time without a component start time. Component name: "+e)},this.setComponentStatus=function(e,t){r.componentStatuses[e]=t},this.markComponentAlreadyFetched=function(t){r.componentLatencies[t]||(r.componentLatencies[t]=e.alreadyFetchedMarker)},this.markDuplicateScriptExecution=function(){r.isDuplicateScriptExecution=!0},this.getPerformanceResourceTiming=function(){try{var e={},t=0,n=window.QSI.global,o=n.baseURL,r=n.hostedJSLocation,a=window.QSI.Orchestrator.scriptSrc;if(!o||!r||!a)return null;var s=new RegExp(a.split("?")[0]),c=new RegExp(r),u=new RegExp(o),l=new RegExp(c.source+"|"+u.source+"|"+s.source);return performance.getEntriesByType("resource").filter((function(e){return e.name.match(l)})).forEach((function(n){var o=n.name.split("?")[0],r=!1,a=o.match(c),u=o.match(s)&&"script"===n.initiatorType,l=o.match(/(Asset|Targeting)\.php/);if(a)o=o.split("dxjsmodule/")[1],r=!0;else if(u)o="Orchestrator",r=!0;else{if(!l)return;o=i(l,1)[0]}var d=n.transferSize,g=n.duration,f=n.decodedBodySize,p=n.domainLookupStart,h=n.domainLookupEnd;r&&(t+=d),e[o]={transferSize:d,decodedBodySize:f,totalLatency:g,dnsLatency:h-p}})),t>0&&(e.totalJSTransfer=t),e}catch(e){return null}},this.send=function(e){try{if(null===r.overallLatency)return void r.debugLog.e("Incomplete Latency Data Provided");var t=o.a.baseURL+"Ajax.php?action=LatencyLog&"+o.a.getClientVersionQueryString(),n=r.buildLoggingData(e);QSI.util.sendHttpRequest({type:"POST",url:t,header:{"Content-type":"application/x-www-form-urlencoded"},includeCookies:!1,data:QSI.util.buildQueryString({LoggingData:JSON.stringify(n)})})}catch(e){r.debugLog.e(e)}},this.buildLoggingData=function(e){if(e&&e.length>0){var t={},n={};return e.forEach((function(e){e in r.componentLatencies&&(t[e]=r.componentLatencies[e]),e in r.componentStatuses&&(n[e]=r.componentStatuses[e])})),{MetricName:r.metricName,Latency:-1,ComponentLatencies:t,ComponentStatuses:n,AdditionalData:{RequestID:r.requestId,UserAgent:navigator.userAgent,BrandID:o.a.global.brandID,BrandDC:o.a.global.brandDC,OtherRequestIDsExecuted:[],IsDuplicateScriptExecution:!1}}}var i=[];for(var a in o.a.Request)Object.prototype.hasOwnProperty.call(o.a.Request,a)&&a!==r.requestId&&i.push(a);var s={};for(var c in r.componentLatencies)c.startsWith(r.components.SR)||(s[c]=r.componentLatencies[c]);var u={};for(var c in r.componentStatuses)c.startsWith(r.components.SR)||(u[c]=r.componentStatuses[c]);var l={MetricName:r.metricName,Latency:r.overallLatency,ComponentLatencies:s,ComponentStatuses:u,AdditionalData:{RequestID:r.requestId,UserAgent:navigator.userAgent,BrandID:o.a.global.brandID,BrandDC:o.a.global.brandDC,OtherRequestIDsExecuted:i,IsDuplicateScriptExecution:r.isDuplicateScriptExecution}},d=r.getPerformanceResourceTiming();return d&&Object.keys(d).length&&(l.PerformanceResourceTiming=d),l},this.sampledSend=function(e){try{Math.random()<=e/100&&r.send()}catch(e){r.debugLog.e(e)}},this.sampledComponentSend=function(e,t){try{Math.random()<=e/100&&r.send(t)}catch(e){r.debugLog.e(e)}},this.debugLog=t,this.metricName=null!=n?n:"si.SILatency"}return e.alreadyFetchedMarker="ALREADY_FETCHED",e.components={CORE_MODULE:"coreModuleRequest",TARGETING:"targetingRequest",DPR_TARGETING:"dprTargetingRequest",XMD_DEBUG_TARGETING:"xmdDebugTargetingRequest",ASSETS_AND_MODULES:"allAssetDefinitionsAndJSModules",CONTACT_FREQUENCY:"contactFrequencyCheck",SR:"sessionReplayRequest"},e}()},27:function(e,t,n){"use strict";var o,i;n.d(t,"e",(function(){return o})),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return s})),function(e){e.ISOLATION_ERROR="ISOLATION_ERROR",e.NOT_ISOLATED="NOT_ISOLATED",e.ISOLATED_V1="ISOLATED_V1"}(o||(o={})),function(e){e.NOT_ISOLATED="not_isolated",e.ISOLATED_V1="isolated_v1"}(i||(i={}));var r,a,s;!function(e){e.IPAddress="IPAddress"}(r||(r={})),function(e){e.StartingUrl="StartingUrl",e.Device="Device",e.UserAgent="UserAgent",e.Referrer="Referrer",e.ExtRefId="ExtRefId",e.DirectoryId="DirectoryId",e.ScreenResolutionWidth="ScreenResolutionWidth",e.ScreenResolutionHeight="ScreenResolutionHeight",e.BrowserWidth="BrowserWidth",e.BrowserHeight="BrowserHeight",e.Browser="Browser",e.OS="OperatingSystem",e.Country="Country"}(a||(a={})),function(e){e.RageClick="RageClick",e.MouseThrash="MouseThrash",e.DeadClick="DeadClick",e.ErrorClick="ErrorClick"}(s||(s={}))},3:function(e,t,n){"use strict";n.r(t);n(43),n(44),n(45),n(46);var o,i=n(17),r=function(){var e=this;this.trackElements=function(){if(0==e.loaded){e.loadCounts();var t=window.QSI,n=t.dbg,o=t.global.eventTrackers;Object.keys(o).forEach((function(t){var n=o[t];e.trackElement(n,t)})),Object(i.d)(window,"beforeunload",(function(){try{e.storeCounts()}catch(e){void 0!==window.QSI&&n&&n.e&&n.e(e)}})),Object(i.d)(window,"pagehide",(function(){try{e.storeCounts()}catch(e){void 0!==window.QSI&&n&&n.e&&n.e(e)}})),e.loaded=!0}},this.trackElement=function(t,n){var o=window.QSI.dbg,r=Object(i.a)(t);r&&Object(i.d)(r,"click",(function(){try{e.track(n)}catch(e){void 0!==window.QSI&&o&&o.e&&o.e(e)}}))},this.track=function(t){e.clicked=!0,e.counts[t]?e.counts[t]++:e.counts[t]=1},this.storeCounts=function(){if(!0===e.clicked){var t=window.QSI.cookie,n=JSON.stringify(e.counts);t.set(e.cookieName,n)}},this.loadCounts=function(){var t=window.QSI.cookie.get(e.cookieName);t&&(e.counts=JSON.parse(t))},this.get=function(t){return e.counts[t]?e.counts[t]:0},this.incrementEventList=function(){if("_qsie"in window&&Object(i.b)(window._qsie))for(var t=0,n=window._qsie.length;t0&&i[i.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]0?(n.e(5).then(n.bind(null,42)).then((function(e){(0,e.addPopunderEmbeddedDataHandler)(e.updatePopunderEDCallback)})),c=t.Deferred(),s.deferred=c,t.loadModules(s,i),[2,new Promise((function(e,t){c.promise().then(e).fail(t)}))]):[2]}}))}))},e.prototype.refreshDebug=function(e){var t=this.oldEvaluationResults,n=this.evaluationResults;if(JSON.stringify(t)!==JSON.stringify(n)){var o={debugInfo:JSON.parse(e.DebugInfo)},i=window.QSI;i.debuggerHasDisplayed=!1,window.QSI.debugHandlerInstance=new i.DebugHandler(o),i.debuggerHasDisplayed=!0}else window.QSI.debugHandlerInstance&&window.QSI.foundFrustrationLogic&&window.QSI.InterceptReevaluator.isActive()&&window.QSI.debugHandlerInstance.refreshFrustrationSignalCounts();this.setOldEvaluationResults(n)},e.evaluateDebounceTimeout=100,e}(),p=function(){function e(e,t,n){this.retryerName=e,this.retryLimit=t,this.retryBackoff=n,this.retryCount=0}return e.prototype.backOffAndRetry=function(e){this.retryCount0&&i[i.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]0)&&!(o=r.next()).done;)a.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a},b=function(e,t){for(var n=0,o=t.length,i=e.length;n=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Q=function(){function e(){var e=this;this.DATA_ISOLATION_EXEMPTED_BRANDS=["qxm"],this.init=function(t,o,i){e.latencyLog=t,e.debugLog=o,e.scriptSrc=i,e.defaultClientSideDelayMilliseconds=5e3,e.setupJFEMessageEventHandlerForIOSOptimization(),window.QSI.windows||(window.QSI.windows={}),window.QSI.targetWindows||(window.QSI.targetWindows=[]),window.addEventListener("message",e.addWindowHandlersPostMessageListener),e.latencyLog.startTimer(),S.a.config.evaluate&&e.handleSPAEvaluation(S.a.config.evaluate),window.QSI.InitializeDataLayerHelper=c,window.QSI.foundFrustrationLogic=!1,window.QSI.InterceptReevaluator=new f,S.a.Request||(S.a.Request={}),S.a.debugConfig=S.a.debugConfig||{};var r,a=S.a.global.legacyId,s={id:a};if(e.latencyLog.setRequestId(a),~Object.keys(S.a.Request).indexOf(a)&&t.markDuplicateScriptExecution(),0===a.indexOf("ZN")?s.ZoneID=a:s.InterceptID=a,S.a.global.isHostedJS())(void 0!==(r=e.parseQueryString(window.location.href)).Q_DEBUG||S.a.config.debug)&&(s.Q_DEBUG=null,e.debugLog.enableFullDebug()),(S.a.config.editing||"0"===S.a.global.version)&&(s.version="0"),e.debugLog.safeConsole("log","DX Tag Loading HostedJS version "+S.a.global.clientVersion);else{var u=void 0;if(i)u=i;else try{var l=document.querySelectorAll("script"),d=[];for(var g in l)Object.prototype.hasOwnProperty.call(l,g)&&(d[g]=l[g]);var p=S.a.global.baseURL;0===p.indexOf("https://")?p=p.substring(8):0===p.indexOf("http://")?p=p.substring(7):0===p.indexOf("//")&&(p=p.substring(2)),u=d.filter((function(e){return(-1!==e.src.indexOf(p+"/WRSiteInterceptEngine/?")||-1!==e.src.indexOf(p+"/SIE/?"))&&(-1===e.src.indexOf("Q_Impress")&&-1===e.src.indexOf("Q_Redirect")&&-1===e.src.indexOf("Q_Click")&&-1===e.src.indexOf("Q_DPR"))}))[0].src}catch(t){e.debugLog.e("An error occurred while loading the intercept. "+t)}void 0!==(r=e.parseQueryString(u)).Q_NOCACHE&&(s.Q_NOCACHE=null),void 0!==r.Q_BOOKMARKLET&&(s.Q_BOOKMARKLET=null,s.Q_DEBUG=null,e.debugLog.enableFullDebug()),void 0!==r.Q_DEBUG&&(s.Q_DEBUG=null,e.debugLog.enableFullDebug()),void 0!==r.Q_VERSION&&(s.version=r.Q_VERSION)}return void 0!==S.a.global.clientVersion&&null!==S.a.global.clientVersion&&(s.Q_CLIENTVERSION=S.a.global.clientVersion),void 0!==S.a.global.clientType&&null!==S.a.global.clientType&&(s.Q_CLIENTTYPE=S.a.global.clientType,void 0!==S.a.clientTypeVariant&&(s.Q_CLIENTTYPE+=S.a.clientTypeVariant)),-1!==window.location.search.indexOf("Q_WAF_PREVIEWER")?Promise.all([n.e(20),n.e(1),n.e(17)]).then(n.bind(null,78)).then((function(e){new(0,e.LivePreviewer)})).catch((function(t){e.debugLog.e("An error occurred while loading the live previewer. "+t)})):(e.load(s,!1),Promise.resolve(null))},this.loadAndStartSessionRecording=function(){return w(e,void 0,void 0,(function(){var e;return v(this,(function(t){return(e=window.QSI.API).load().then((function(){return e.SessionRecording.start()})),[2]}))}))},this.debouncedLoadAndStartSessionRecording=this.debounce(this.loadAndStartSessionRecording,5e3),this.isSRThrottled=function(t){var n=e.getSRThrottledCookieName(t);return!!window.QSI.cookie.get(n)},this.getSRThrottledCookieName=function(e){return"QSI_ReplaySession_Throttled_"+e},this.generateQueryString=S.a.generateQueryString,this.getClientVersionQueryString=S.a.getClientVersionQueryString,this.Deferred=function(){var t={},n="pending",o=[],i=[],r=[],a=[],s=e,c={state:function(){return n},then:function(e,t){return this.done(e).fail(t),this},done:function(e){if("pending"===n&&e)r.push(e);else if("resolved"===n)try{e.apply(this,o)}catch(e){s.debugLog.e(e)}return this},fail:function(e){if("pending"===n&&e)a.push(e);else if("rejected"===n)try{e.apply(this,i)}catch(e){s.debugLog.e(e)}return this},promise:function(){return c}};return e.forOwn(c,(function(e,n){t[n]=c[n]})),t.resolve=function(){for(var e=[],t=0;t200&&(o=this.reduceContactEmbeddedDataToLegalSize(o,200),this.debugLog.e("Contact embedded data input exceeds size limit: 200, only keeps first 200 and drop extra items"));var i=this.constructLegitimateContactEmbeddedData(o);if(Object.keys(i).length>0){var r=JSON.stringify(i);t+="&contactEmbeddedData="+encodeURIComponent(r)}}t+="&xmdRetryCount="+encodeURIComponent(e)}var a=this.formatHasAnalyticsConsent();return t+="&hasAnalyticsConsent="+encodeURIComponent(a),t+=this.getCJAEventData()},e.prototype.xmdContactInfoIsValid=function(e,t){return e.length<=t},e.prototype.getCJAEventData=function(){var e=new Date;return"&Timestamp="+encodeURIComponent(e.toISOString())+this.getCjaCustomValues()},e.prototype.getCjaCustomValues=function(){var e=S.a.config.customCjaData;if(null!==e&&"object"==typeof e&&!Array.isArray(e)){var t={};for(var n in e){if(Object.keys(t).length>=20)break;var o=e[n],i="string"==typeof n?n:JSON.stringify(n),r="string"==typeof o?o:JSON.stringify(o);i.length>100||r.length>100||(t[i]=r)}if(0!==Object.keys(t).length)return"&customCjaData="+encodeURIComponent(JSON.stringify(t))}return""},e.prototype.formatHasAnalyticsConsent=function(){var e=S.a.config.hasAnalyticsConsent;if(!(null==e)){var t=e.toString().toLowerCase();if("true"==t||"false"==t)return t}return null},e.prototype.reduceContactEmbeddedDataToLegalSize=function(e,t){var n,o,i=Object.entries(e).slice(0,t),r={};try{for(var a=m(i),s=a.next();!s.done;s=a.next()){var c=y(s.value,2),u=c[0],l=c[1];r[u]=l}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return r},e.prototype.constructLegitimateContactEmbeddedData=function(e){var t,n,o={};try{for(var i=m(Object.entries(e)),r=i.next();!r.done;r=i.next()){var a=y(r.value,2),s=a[0],c=a[1];null!=c&&s.length<=100&&c.toString().length<=200?o[s]=c:this.debugLog.e("Drop illegal item due to exceeding size limit (key > 100 characters, value > 200 characters or contains undefined value for key: "+s+"}")}}catch(e){t={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o},e.prototype.generateTargetingURL=function(e){var t=S.a.baseURL+"Targeting.php?",n=[];e.InterceptID&&n.push("Q_InterceptID="+e.InterceptID),e.ZoneID&&n.push("Q_ZoneID="+e.ZoneID),e.Q_XMD_DEBUG?n.push("Q_XMD_DEBUG"):(null===e.Q_DEBUG&&(n.push("Q_DEBUG"),S.a.isDebug=!0),null===e.Q_BOOKMARKLET&&n.push("Q_BOOKMARKLET")),null===e.Q_NOCACHE&&n.push("Q_NOCACHE"),void 0!==e.version&&null!==e.version&&n.push("Version="+e.version);var o=window.QSI.profile.get("QualtricsSurveyHistory","",1);if(o){var i=encodeURIComponent(Object.keys(o).toString());n.push("Q_QualtricsSurveyTaken="+i)}return void 0!==e.Q_CLIENTVERSION&&null!==e.Q_CLIENTVERSION&&n.push("Q_CLIENTVERSION="+e.Q_CLIENTVERSION),void 0!==e.Q_CLIENTTYPE&&null!==e.Q_CLIENTTYPE&&n.push("Q_CLIENTTYPE="+e.Q_CLIENTTYPE),e.Q_EXT_REF&&n.push("Q_EXT_REF"),t+n.join("&")},e.prototype.isMessageEventOriginAllowed=function(e){if(S.a.reg)for(var t in S.a.reg)if(Object.prototype.hasOwnProperty.call(S.a.reg,t)&&S.a.reg[t]&&S.a.reg[t].options){var n=S.a.reg[t].options;if(n.targetURLOrigin===e)return!0;if(n.target&&n.target.OriginalURLOrigin===e)return!0}return!1},e.prototype.doCSTargetingEvaluation=function(e,t,n){return w(this,void 0,void 0,(function(){var o,i,r,a,s,c=this;return v(this,(function(u){switch(u.label){case 0:return function(e){e.EMBEDDED_TARGET="EmbeddedTarget"}(o||(o={})),Array.isArray(e.ClientSideIntercepts)?(i=window.QSI.ClientSideTargeting,e.Intercepts=[],r={Intercepts:{},Type:S.a.config.editing?"Editing":"Published"},a={FirstDCFInterceptPassed:!1},s=e.ClientSideIntercepts.map((function(s){return w(c,void 0,void 0,(function(){var c,u,l,d=this;return v(this,(function(g){switch(g.label){case 0:return s?s.Error?(this.debugLog.log(s.Message),[3,3]):[3,1]:[3,3];case 1:return[4,new Promise((function(e,t){setTimeout((function(){try{var n=void 0;d.usePreviousEvaluationResult(s.InterceptID)?n=window.QSI.InterceptReevaluator.getInterceptEvaluationResult(s.InterceptID):(n=i.evaluateIntercept(s,a,S.a.isDebug),window.QSI.InterceptReevaluator.setInterceptEvaluationResult(s.InterceptID,n)),e(n)}catch(e){t(e)}}))}))];case 2:c=g.sent(),u=c.interceptEntry,l=c.interceptDebugInfo,r.Intercepts[s.InterceptID]=l,u&&(window.QSI.InterceptReevaluator.isActive()&&window.QSI.InterceptReevaluator.hasInterceptAlreadyRun(u.InterceptID)||(t.Intercepts[s.InterceptID]={},t.Intercepts[s.InterceptID].Targeting=u,e.Intercepts.push(u),u.Decision.Creative&&(u.Decision.Creative.Type&&(e.Modules[u.Decision.Creative.Type]=n),u.Decision.PopUnderTarget&&(e.Modules.PopUnder=n)),u.Decision.Target&&u.Decision.Target.DisplayType===o.EMBEDDED_TARGET&&(e.Modules.EmbeddedTarget=n))),g.label=3;case 3:return[2]}}))}))})),[4,Promise.all(s)]):[2];case 1:return u.sent(),e.Intercepts.length>0&&(e.Modules.ScreenCapture=n,e.Intercepts.forEach((function(e){var t=e.InterceptID;window.QSI.InterceptReevaluator.setInterceptHasRun(t)}))),S.a.isDebug&&(e.DebugInfo=JSON.stringify(r)),delete e.Modules.DependencyResolver,[2]}}))}))},e.prototype.usePreviousEvaluationResult=function(e){var t=window.QSI.InterceptReevaluator;return!!t.isActive()&&(!!t.hasInterceptAlreadyRun(e)||!window.QSI.DataLayerHelper&&(null!=window.QSI.InterceptReevaluator.getInterceptEvaluationResult(e)&&!t.hasFrustrationSignalLogic(e)))},e.prototype.doStartTrackingMatrixCheck=function(e){var t=this.formatHasAnalyticsConsent(),n=null!=t?"true"===t:null,o=e.SRConfiguration.recordByDefault;return n||o&&null==n},e.prototype.canStartRegularSession=function(e){return!!e.RequestData.ID&&!!e.SRConfiguration&&!this.isSRThrottled(e.RequestData.ID)&&this.doStartTrackingMatrixCheck(e)},e.prototype.canStartTestSession=function(e){return!!e.RequestData.ID&&!!e.SRTestConfiguration&&!e.RequestData.isDebug&&"Editing"!==e.RequestData.bVersion},e.prototype.getExistingSessionTypeFromCookie=function(e){var t=window.QSI.cookie,n="QSI_ReplaySession_Info_"+e,o=JSON.parse(t.get(n));return null===o?(window.QSI.global.featureFlags["DX.PepperPotts_TestingTools"]&&console.log("No active session info cookie found called: "+n),"No_Active_Session"):!0===o.isTestSession?(window.QSI.global.featureFlags["DX.PepperPotts_TestingTools"]&&console.log("Found test session info cookie called: "+n),"Test_Session"):!1===o.isTestSession?(window.QSI.global.featureFlags["DX.PepperPotts_TestingTools"]&&console.log("Found regular session info cookie called: "+n),window.QSI.SRGlobalConfiguration.isTestSession&&(window.QSI.global.featureFlags["DX.PepperPotts_TestingTools"]&&console.log("Deleting regular session info cookie called: "+n+" to make way for test session"),t.erase(n,S.a.CookieDomain)),"Regular_Session"):void 0},e.prototype.getMillisecondsToDelay=function(){var e=S.a.config.clientSideDelayMilliseconds;return"number"!=typeof e||!e&&0!==e||e>=72e6||e<0?this.defaultClientSideDelayMilliseconds:e},e.prototype.convertIsolationStatus=function(e){switch(e){case a.e.NOT_ISOLATED:return a.d.NOT_ISOLATED;case a.e.ISOLATED_V1:return a.d.ISOLATED_V1;default:throw new Error("Invalid isolation status: "+e)}},e.prototype.setSRGlobalConfiguration=function(e){var t=window.QSI.util;!e.SRTestConfiguration&&window.QSI.SRGlobalConfiguration||(window.QSI.SRGlobalConfiguration={brandId:e.RequestData.brandID,brandDc:t.getBrandDC(e.RequestData.brandDC),zoneId:e.RequestData.ID,srBaseUrl:S.a.getSRBaseURLFromConfigAndOverrides(t.getBrandDC(e.RequestData.brandDC)),cookieDomain:e.RequestData.cookieDomain,configuration:e.SRConfiguration||e.SRTestConfiguration,brandBaseUrl:e.RequestData.brandBaseUrl,isTestSession:!!e.SRTestConfiguration,isolationStatus:window.QSI.global.featureFlags["DX.DXA_DI_EA"]&&void 0!==e.RequestData.isolationStatus?this.convertIsolationStatus(e.RequestData.isolationStatus):void 0})},e.prototype.canStartSR=function(e){var t,n,o,i,r,s,c,u=window.QSI.global;return!(!e.SRConfiguration&&!e.SRTestConfiguration)&&(e.RequestData&&(null===(t=e.RequestData)||void 0===t?void 0:t.ID)&&(null===(o=null===(n=e.RequestData)||void 0===n?void 0:n.ID)||void 0===o?void 0:o.startsWith("ZN_"))?!(!this.DATA_ISOLATION_EXEMPTED_BRANDS.includes(e.RequestData.brandID)&&e.RequestData.isolationStatus===a.e.ISOLATED_V1&&!window.QSI.global.featureFlags["DX.DXA_DI_EA"])&&((e.RequestData.isolationStatus!==a.e.ISOLATION_ERROR||!window.QSI.global.featureFlags["DX.DXA_DI_EA"])&&(e.SRConfiguration&&(null===(i=window.QSI.SR)||void 0===i?void 0:i.zoneId)?((null===(r=window.QSI.SR)||void 0===r?void 0:r.zoneId)!==e.RequestData.ID&&(u.srMultiZoneErrors+=1,this.debugLog.e("Multiple SR Zones Detected on page. "+(null===(s=window.QSI.SR)||void 0===s?void 0:s.zoneId)+" is already initialized, "+e.RequestData.ID+" attempted to initialize after. To resolve, please use only one zone snippet per page."),1==u.srMultiZoneErrors&&console.error("Qualtrics: Multiple Zones Detected on page. "+(null===(c=window.QSI.SR)||void 0===c?void 0:c.zoneId)+" is already initialized, "+e.RequestData.ID+" attempted to initialize after. To resolve, please use only one zone snippet per page.")),!1):!e.SRConfiguration||!e.RequestData||"SR_ENABLED_FOR_WEB_ONLY"===e.RequestData.srEnabled||"SR_ENABLED_FOR_WEB_AND_MOBILE"===e.RequestData.srEnabled)):(this.debugLog.e("Missing or incorrectly formatted request data in targeting response"),!1))},e.prototype.startSR=function(e){var t=this,o=window.QSI,i=o.API,r=o.SR,a=o.SRGlobalConfiguration,s=this.canStartRegularSession(e),c=this.canStartTestSession(e),u=this.getExistingSessionTypeFromCookie(a.zoneId);c&&Promise.all([n.e(2),n.e(16)]).then(n.bind(null,76)).then((function(e){var n=e.RenderTestSessionComponents;r&&"No_Active_Session"===u&&(window.QSI.SR=null),n({zoneId:a.zoneId,brandBaseUrl:a.brandBaseUrl,isTestSessionActive:"Test_Session"===u,errorCallback:t.debugLog.e})})),(s||c&&"Test_Session"===u)&&i.SessionRecording.start()},e.prototype.handleTargetingResponse=function(e,t){var o=this,i=window.QSI,r=i.AssetManager,a=i.API,s=i.EventTracker,c=i.history;try{var u;if("SampleRejected"===t)return;try{u=JSON.parse(t)}catch(e){return void this.debugLog.e("Failed to parse JSON of targeting response: "+t)}if(u.Error)return void this.debugLog.e(u.Message);if("XMD_RETRY"===u.Message)return void this.targetingRetryer.backOffAndRetry((function(){o.load(e,!0)}));var l=u.Modules;this.setGlobalVars(u);var d=this.isBrowserSupported();if("EXTREF_RETRY"===u.Message){if(l.Core&&d)r.promiseLoadScript("Core",l.Core,S.a,this.latencyLog).then((function(){return w(o,void 0,void 0,(function(){return v(this,(function(t){return this.evaluateAndSetExternalReference(u),this.load(I(I({},e),{Q_EXT_REF:!0}),!1),[2]}))}))}));return}if(u.RequestData&&u.RequestData.reevaluateInterceptOnUrlChange&&this.handleSPAEvaluation({onHashChange:!0,onUrlPathChange:!0}),c.logVisit(),this.canStartSR(u)&&(this.setSRGlobalConfiguration(u),setTimeout((function(){o.startSR(u)}),this.getMillisecondsToDelay())),!S.a.Request[e.id].hasDependencies&&S.a.Request[e.id].hasBeenResolved||(s.trackElements(),s.incrementEventList(),window._qsie=a.Events),this.csTargetingParams={targetingResponse:u,targetingRequest:S.a.Request[e.id],clientVersion:S.a.global.clientVersion,assetLoadingParams:e},l.Core&&d)r.promiseLoadScript("Core",l.Core,S.a,this.latencyLog).then((function(){return w(o,void 0,void 0,(function(){var t,o,i=this;return v(this,(function(r){switch(r.label){case 0:return r.trys.push([0,4,,5]),t=window.QSI.ClientSideTargeting,S.a.global.featureFlags["DUX.ClientSideTargetingM1"]&&u.ClientSideIntercepts&&u.ClientSideIntercepts.length>0?(t.setEnabled(!0),[4,this.doCSTargetingEvaluation(u,S.a.Request[e.id],S.a.global.clientVersion)]):[3,2];case 1:return r.sent(),[3,3];case 2:u.Intercepts&&u.Intercepts.forEach((function(t){t&&(t.Error?i.debugLog.log(t.Message):(S.a.Request[e.id].Intercepts[t.InterceptID]={},S.a.Request[e.id].Intercepts[t.InterceptID].Targeting=t))})),r.label=3;case 3:return!u.Dependencies||S.a.global.featureFlags["DUX.ClientSideTargetingM1"]&&u.ClientSideIntercepts&&u.ClientSideIntercepts.length>0?(n.e(5).then(n.bind(null,42)).then((function(e){(0,e.addPopunderEmbeddedDataHandler)(e.updatePopunderEDCallback)})),this.shouldMakeXMDDebugCall()?(e.Q_XMD_DEBUG=!0,this.handleXMDDebug(e,u)):this.loadModules(e,u)):this.handleDependencyResolver(e,u),[3,5];case 4:return o=r.sent(),this.debugLog.e(o),[3,5];case 5:return[2]}}))}))}),(function(){}));else this.doneLoading(e,u)}catch(e){this.debugLog.e(e)}},e.prototype.evaluateAndSetExternalReference=function(e){var t,n=e.RequestData.extRefType,o=e.RequestData.extRefValue;switch(n){case"JS":t=window.QSI.EmbeddedData.getJavaScriptValue(o).toString();break;case"Cookie":t=window.QSI.EmbeddedData.getCookieVal(o);break;case"HTML":t=window.QSI.EmbeddedData.getHTMLFromDOM(o);break;case"StaticValue":t=o;break;default:return void this.debugLog.log("Invalid type when evaluating external reference of type "+n+" and value "+o+" in "+e.RequestData.ID)}t&&(S.a.config.externalReference=t)},e.prototype.shouldMakeXMDDebugCall=function(){return!window.QSI.ClientSideTargeting.isEnabled()&&(!!S.a.config.externalReference&&S.a.isDebug)},e.prototype.handleDependencyResolver=function(e,t){var n=this,o=window.QSI.AssetManager;e.BrandDC=t.RequestData.brandDC;var i=this.generateTargetingURL(e);i+="&t="+(new Date).getTime(),i+="&Q_VSI="+encodeURIComponent(JSON.stringify(t.RequestData.validIntercepts)),i+="&Q_DPR=true",this.latencyLog.startComponentTimer(h.a.components.DPR_TARGETING);var r="";for(var a in t.Dependencies)Object.prototype.hasOwnProperty.call(t.Dependencies,a)&&("SiteCatalyst"===a&&(QSI["Resolve"+a].rootName=S.a.adobeVar),r+=QSI["Resolve"+a].prepare(t.Dependencies[a]));r+="&"+this.getTargetingPostData(),o.promiseFetch("POST",i,r).then((function(){this.latencyLog.endComponentTimer(h.a.components.DPR_TARGETING)})).then(this.handleTargetingResponse.bind(this,e),(function(t){n.debugLog.e(t.Message),e.deferred&&e.deferred.reject()}))},e.prototype.handleXMDDebug=function(e,t){var n=this,o=window.QSI.AssetManager,i={};t.Intercepts.forEach((function(e){if(e.Decision&&e.Decision.ActionSetID){var t=e.InterceptID,n=e.Decision.ActionSetID;i[t]=n}})),e.BrandDC=t.RequestData.brandDC;var r=this.generateTargetingURL(e),a="";a+=this.getTargetingPostData();var s=""+h.a.components.XMD_DEBUG_TARGETING+this.xmdDebugRetryer.getRetryCount();this.latencyLog.startComponentTimer(s),o.promiseFetch("POST",r,a).then((function(o){n.latencyLog.endComponentTimer(s),n.handleXMDDebugResponse(e,t,i,o)}))},e.prototype.handleXMDDebugResponse=function(e,t,n,o){var i,r,a=this;try{i=JSON.parse(o)}catch(e){return void this.debugLog.e("Failed to parse JSON of Q_XMD_DEBUG targeting response: "+o)}if(S.a.isDebug)try{r=JSON.parse(t.DebugInfo)}catch(e){return void this.debugLog.e("Failed to parse debugInfo JSON of Q_DEBUG targeting response: "+t)}S.a.isDebug&&(i.Intercepts.forEach((function(e){if(e){var t=e.InterceptID;Object.prototype.hasOwnProperty.call(r.Intercepts,t)&&Object.prototype.hasOwnProperty.call(n,t)&&e.Error&&a.debugLog.log(e.Message)}})),i.DebugInfo=JSON.stringify(r),i.Modules.Debug=S.a.global.clientVersion),i.Intercepts.forEach((function(n){if(n)if(n.Error)a.debugLog.log(n.Message);else{for(var o=void 0,i=0;i0?o.latencyLog.send():o.latencyLog.sampledSend(S.a.global.latencySamplePercentage)),o.setGlobalIncludes(e,t);var i=S.a.Request[e.id].displayInterceptType,r=S.a.global.featureFlags["DUX.ClientSideTargetingM1"]&&t.ClientSideIntercepts&&t.ClientSideIntercepts.length>0;("manual"!==i&&!S.a.Request[e.id].zoneManualDisplay||S.a.Request[e.id].hasDependencies&&!r)&&n(e.id,!1),o.doneLoading(e,t),e.deferred&&e.deferred.resolve()}))},e.prototype.isBrowserSupported=function(){return!("Chrome"===window.QSI.Browser.name&&window.QSI.Browser.version<=20)&&(!("Firefox"===window.QSI.Browser.name&&window.QSI.Browser.version<=59)&&!("Internet Explorer"===window.QSI.Browser.name&&window.QSI.Browser.version<=10))},e.prototype.setGlobalIncludes=function(e,t){if(S.a.isDebug&&t.DebugInfo){S.a.Request[e.id].Debug={debugInfo:JSON.parse(t.DebugInfo),version:t.RequestData.bVersion};var n={version:t.RequestData.bVersion,debugInfo:JSON.parse(t.DebugInfo)};S.a.debugConfig=n}S.a.version=t.RequestData.bVersion,S.a.InterceptsRan=!1,S.a.Request[e.id].hasDependencies=t.RequestData.hasDependencies,S.a.Request[e.id].hasBeenResolved=t.RequestData.hasBeenResolved,S.a.Request[e.id].displayInterceptType=t.RequestData.displayInterceptType,S.a.Request[e.id].zoneManualDisplay=t.RequestData.zoneManualDisplay},e.prototype.setGlobalVars=function(e){window.QSI.Browser={name:e.RequestData.browser,version:e.RequestData.browserVersion,isMobile:e.RequestData.isMobile,isBrowserSupported:e.RequestData.isBrowserSupported},window.QSI.CORSOrigin=e.RequestData.CORSOrigin,window.QSI.OS={name:e.RequestData.osName,version:e.RequestData.osVersion},window.QSI.config.gtmContainerID=e.RequestData.googleDataLayerVariable,window.QSI.config.customJavaScriptPermission=e.RequestData.customJavaScriptPermission,S.a.global.brandID=e.RequestData.brandID,S.a.global.brandDC=e.RequestData.brandDC,S.a.global.geo=e.RequestData.geo,S.a.global.graphicPath=S.a.overrides.graphicPath||"https://"+S.a.global.brandDC+"/WRQualtricsSiteIntercept/Graphic.php?IM=",S.a.global.imagePath=S.a.global.baseURL+"/WRQualtricsShared/Graphics",S.a.global.maxCookieSize=e.RequestData.maxCookieSize,S.a.global.featureFlags=e.FeatureFlags,S.a.global.screenCaptureServiceBaseURL=e.RequestData.screenCaptureServiceBaseURL,S.a.global.brandBaseUrl=e.RequestData.brandBaseUrl,S.a.global.eventTrackers=e.RequestData.eventTrackers,S.a.adobeVar=e.RequestData.adobeSCVariable,S.a.id=e.RequestData.ID,S.a.reqID[e.RequestData.ID]=!0,S.a.CookieDomain=e.RequestData.cookieDomain,S.a.historyStorageType=e.RequestData.historyStorageType,S.a.historyStorageSize=e.RequestData.historyStorageSize,S.a.currentURL=window.location.href.split("?")[0],function(){var e=document.createElement("div");e.className="scrollbar-measure",e.style.width="100px",e.style.height="100px",e.style.overflow="scroll",e.style.position="absolute",e.style.top="-99999px",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;S.a.scrollbarWidth=t,document.body.removeChild(e)}()},e.prototype.parseQueryString=function(e){var t={};if(e&&-1!==e.indexOf("?"))for(var n=e.split("?",2)[1].split("&"),o=0;o1?n:o.createArrayFromArguments(b([n],y(i))),--a||s.resolve(t)}};if(r>1)for(var u=0;u0&&i[i.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},q=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a},M=function(){function e(){var e=this;this.unloading=!1,this.Events=new T,this.SessionRecording=new P,this.load=function(){try{var t=window.QSI.Orchestrator.Deferred(),n=t.promise();return window.QSI.PendingQueue||(window.QSI.PendingQueue=[]),window.QSI.LoadingState&&window.QSI.LoadingState.length>0?window.QSI.PendingQueue.push(e.loadHelper.bind(e,t)):e.loadHelper.bind(e,t)(),n}catch(e){window.QSI.dbg.e(e)}finally{window.QSI.dbg.c("DXJSAPIEvents: QSI.API.load()")}},this.unloadForSPA=function(t){window.QSI.global.featureFlags["DX.DXA_Auto_SPA"]&&t&&window.QSI.API.SessionRecording.pause(),e.unloadBase(!0)},this.unload=function(){window.QSI.DataLayerHelper=void 0,window.QSI.InterceptReevaluator=new f,e.unloadBase(!1)},this.unloadBase=function(t){void 0===t&&(t=!1);try{if(window.QSI.PendingQueue||(window.QSI.PendingQueue=[]),window.QSI.LoadingState&&window.QSI.LoadingState.length>0)return void(t?window.QSI.PendingQueue.push(window.QSI.API.unloadForSPA):window.QSI.PendingQueue.push(window.QSI.API.unload));if(e.unloading=!0,window.QSI.SR&&!t){window.QSI.API.SessionRecording.pause();var n=document.getElementById("QSI_TestSessionToolbar");n&&n.parentNode&&n.parentNode.removeChild(n)}if(window.QSI.reg&&(window.QSI.util.forOwn(window.QSI.reg,(function(e,t){window.QSI.reg[t].remove()})),window.QSI.util.removeObservers(),window.QSI.util.removeTimeouts()),window.QSI.debug&&(window.QSI.util.remove(window.QSI.util.$("QSI_Debug")),window.QSI.debuggerHasDisplayed=!1),window.QSI.styleElements)for(var o=window.QSI.styleElements,i=0;i0)return void window.QSI.PendingQueue.push((function(){window.QSI.API.run(t)}));window.QSI.InterceptsRan||void 0===window.QSI.reg||(window.QSI.runOptions=t,e.shouldRunWithOptions(t)?(e.prepareForEvaluationWithOptions(),window.QSI.InterceptReevaluator.debouncedEvaluateAndRun()):window.QSI.RunIntercepts(null,!0))}catch(e){window.QSI.dbg.e(e)}finally{window.QSI.dbg.c("DXJSAPIEvents: QSI.API.run()")}},this.prepareForEvaluationWithOptions=function(){var e,t;try{for(var n=x(Object.entries(window.QSI.Request)),o=n.next();!o.done;o=n.next()){var i=q(o.value,2);i[0];i[1].Intercepts={}}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}window.QSI.InterceptReevaluator.resetInterceptHasRun(),window.QSI.InterceptReevaluator.resetEvaluationResults()},this.shouldRunWithOptions=function(e){var t=null==e?void 0:e.jsExpressionValues;return t&&"object"==typeof t&&Object.keys(t).length>0},this.getIntercept=function(e){return new Promise((function(e,t){try{window.QSI.PendingQueue||(window.QSI.PendingQueue=[]),window.QSI.LoadingState&&window.QSI.LoadingState.length>0?window.QSI.PendingQueue.push((function(){e()})):e()}catch(e){t(e)}})).then((function(){var t=q(window.QSI.Orchestrator.getInterceptFromSiResponse(e),2),n=t[0],o=t[1];if(!n)throw e+" is not a valid Intercept ID";return A.getInstance(N({},n),o?N({},o):null)})).catch((function(e){throw window.QSI.dbg.e(e),e})).finally((function(){window.QSI.dbg.log("DXJSAPIEvents: QSI.API.getIntercept()",!1,"info")}))}}return e.prototype.loadHelper=function(e){try{if(window.QSI.reg||this.unloading)return void e.reject();void 0===window.QSI.reg&&(window.QSI.reg={}),void 0===window.QSI.ed&&(window.QSI.ed={}),void 0===window.QSI.reqID&&(window.QSI.reqID={}),void 0===window.QSI.Request&&(window.QSI.Request={}),void 0===window.QSI.styleElements&&(window.QSI.styleElements=[]),window.QSI.util.forOwn(window.QSI.reqID,(function(t,n){var o={loadingFromAPI:!0};o.id=n,"Editing"===window.QSI.version&&(o.version="0"),void 0!==window.QSI.global.clientVersion&&null!==window.QSI.global.clientVersion&&(o.Q_CLIENTVERSION=window.QSI.global.clientVersion),void 0!==window.QSI.global.clientType&&null!==window.QSI.global.clientType&&(o.Q_CLIENTTYPE=window.QSI.global.clientType,void 0!==window.QSI.clientTypeVariant&&(o.Q_CLIENTTYPE+=window.QSI.clientTypeVariant)),0===n.search(/ZN/)?o.ZoneID=n:o.InterceptID=n,window.QSI.isDebug&&(o.Q_DEBUG=null),o.deferred=e,window.QSI.Orchestrator.load(o,!1)}))}catch(e){window.QSI.dbg.e(e)}},e}();function F(e){var t=new D;window.QSI&&window.QSI.closelyLoadedMultiZoneInfo&&(t.c("Multiple zone detected with info "+window.QSI.closelyLoadedMultiZoneInfo),window.QSI.closelyLoadedMultiZoneInfo=void 0);var n=new h.a(t);window.QSI.API=window.QSI.API||new M,window.QSI.ClientLog=new R,window.QSI.dbg=t,window.QSI.LatencyLog=n,window.QSI.EventTracker=new r,window.QSI.cookie=new C.a,window.QSI.CookieStorage=new E,window.QSI.Orchestrator=new Q,window.QSI.Orchestrator.init(n,t,e)}n.d(t,"initialize",(function(){return F}))},32:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},33:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(0),i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},r=["^QSI_ReplaySession_Info_ZN_.*"],a=function(){function e(){var e=this;this.cookieSize=0,document.cookie.split(";").forEach((function(t){var n=t.indexOf("QSI");~n&&(e.cookieSize+=t.length-n)}))}return e.prototype.set=function(e,t,n){void 0===n&&(n={});var i=n.force,r=n.erase,a=n.secure,s=n.daysToExpire,c=n.domain,u=n.shouldEncode,l=void 0!==u&&u,d=o.a.global.maxCookieSize,g=this.get(e),f=this.getCookieSize();g&&(f-=(e+"="+g).length);var p="";if(s){var h=new Date;h.setTime(h.getTime()+864e5*s),p="; expires="+h.toUTCString()}var S="";c?S="domain="+c:o.a.CookieDomain&&(S="domain="+o.a.CookieDomain);var I=e+"="+(l?this.encode(t):t),w=f+I.length;if(!(i||null!==d&&w<=d||null===d))throw new Error("Cannot exceed the specified maximum cookie size");this.cookieSize=r?f:w;var v=""+I+p+"; path=/; "+S;("https:"===location.protocol||a)&&(v+="; secure"),document.cookie=v},e.prototype.get=function(e){for(var t=document.cookie.split(";"),n=0;nt;){var n=decodeURIComponent(e).split("|");n.splice(0,1),e=n.join("|"),e=encodeURIComponent(e)}return e},get:function(){var e=this.historyStorage.getHistorySessionData();return e||(e=[]),e=this.limitSize(e),decodeURIComponent(e)},logCurrentURL:function(){var e=window.location.href,t=1*new Date;this.logSite(e,t)},getReferrer:function(){return document.referrer},logSearch:function(){var e,t,n=this.getReferrer();if(n.search(/(google.com)|(bing.com)|(yahoo.com)/)>=0){var o="";n.search(/(google.com)|(bing.com)/)>=0?(e=/q=(.*?)\&/,(t=n.match(e))&&t.length&&t[1]&&(o=t[1])):n.search(/yahoo.com/)>=0&&(e=/p=(.*?)\&/,(t=n.match(e))&&t.length&&t[1]&&(o=t[1])),o=decodeURIComponent(o),QSI.profile.set("History","SearchTerm",o)}},logReferrer:function(){var e=this.getReferrer();e&&(QSI.util.build("a",{href:e}).hostname!==document.location.host&&QSI.profile.set("History","SiteReferrer",e),QSI.profile.set("History","PageReferrer",e))},logIntercept:function(e,t){t&&this.logActionSet(t)},logActionSet:function(e){if(e.search("AS_")>=0){var t=e,n=1*new Date;QSI.profile.set("ActionSetHistory",t,n),QSI.profile.set("ActionSetHistory",t,n,1)}},logSurvey:function(e,t){QSI.profile.set("QualtricsSurveyHistory",e,t,1)},getSiteReferrer:function(){return QSI.profile.get("History","SiteReferrer")},getPageReferrer:function(){return QSI.profile.get("History","PageReferrer")},getSearch:function(){var e=QSI.profile.get("History","SearchTerm");return e||(e=""),e},getTimeOnSite:function(){var e=this.focusTime;return e+this.blurTime+"|"+e},getFocusTimeFromBrowserStorage:function(){var e=QSI.profile.get("History","FocusTime");return e||(e=0),e},getBlurTimeFromBrowserStorage:function(){var e=QSI.profile.get("History","BlurTime");return e||(e=0),e},getActionSetHistory:function(e,t){var n=QSI.profile.get("ActionSetHistory",e,t);return n||(n=0),n},getPageCount:function(){var e,t,n=this.historyStorage.getHistorySessionData(),o=0,i=[];if(n){var r=(n=decodeURIComponent(n)).split("|");for(t=r.length,e=0;eNumber(t.style.zIndex)?1:0}));for(var n=0;nNumber(t.position.left)?1:0})),t=QSI.util.stableSort(t,(function(e,t){return Number(e.position.top)Number(t.position.top)?1:0})),e.Options.elements.Elements=t,e}return e}}},47:function(e,t,n){(function(t){var n=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,r=/^0o[0-7]+$/i,a=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,u=s||c||Function("return this")(),l=Object.prototype.toString,d=Math.max,g=Math.min,f=function(){return u.Date.now()};function p(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function h(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==l.call(e)}(e))return NaN;if(p(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=p(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var s=i.test(e);return s||r.test(e)?a(e.slice(2),s?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var o,i,r,a,s,c,u=0,l=!1,S=!1,I=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function w(t){var n=o,r=i;return o=i=void 0,u=t,a=e.apply(r,n)}function v(e){return u=e,s=setTimeout(b,t),l?w(e):a}function y(e){var n=e-c;return void 0===c||n>=t||n<0||S&&e-u>=r}function b(){var e=f();if(y(e))return m(e);s=setTimeout(b,function(e){var n=t-(e-c);return S?g(n,r-(e-u)):n}(e))}function m(e){return s=void 0,I&&o?w(e):(o=i=void 0,a)}function Q(){var e=f(),n=y(e);if(o=arguments,i=this,c=e,n){if(void 0===s)return v(c);if(S)return s=setTimeout(b,t),w(c)}return void 0===s&&(s=setTimeout(b,t)),a}return t=h(t)||0,p(n)&&(l=!!n.leading,r=(S="maxWait"in n)?d(h(n.maxWait)||0,t):r,I="trailing"in n?!!n.trailing:I),Q.cancel=function(){void 0!==s&&clearTimeout(s),u=0,o=c=i=s=void 0},Q.flush=function(){return void 0===s?a:m(f())},Q}}).call(this,n(32))}}]); } catch(e) { if (typeof QSI !== 'undefined' && QSI.dbg && QSI.dbg.e) { QSI.dbg.e(e); } }